<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0px;
            padding: 0px;
        }

        .top {
            width: 1200px;
            width: 650px;
            margin: 50px;
            padding: 4px;
        }

        li {
            width: 250px;
            height: 320px;
            list-style: none;
            float: left;
            /* background-color: antiquewhite; */
            margin: 10px;
            overflow: hidden;

            position: relative;
            top: 0px;
            transition: all 1s;
        }

        li:hover {
            box-shadow: 5px 5px 30px 2px #999;
            top: -10px;
            cursor: pointer;
        }

        .text {
            width: 250px;
            height: 100px;
        }

        p {
            line-height: 50px;
            text-align: center;
        }

        .comment {
            width: 250px;
            height: 100px;
            background-color: rgb(166, 55, 28);
            color: #FFF;
            /* 相对定位 */
            position: relative;
            top: 0px;
            transition: all 1s;
        }

        li:hover .comment {
            top: -100px;
        }

        .price {
            color: red;
        }

        .ju {
            color: #F60;
        }
    </style>
</head>

<body>
    <div class="top"></div>
    <ul>
        <li><img src="./素材/items/image1.png" width="250px" height="320px"></li>
        <li>
            <center><img src="./素材/items/image3.png"></center>
            <div class="text">
                <p>小米笔记本电脑pro&nbsp; 15.6</p>
                <p class="price">6299元</p>
            </div>
            <div class="comment">
                <p>商品</p>
                <p class="ju">来自白昆龙评论</p>
            </div>
        </li>
        <li>
            <center><img src="./素材/items/image4.png"></center>
            <div class="text">
                <p>小米笔记本电脑pro</p>
                <p class="price">2499元</p>
            </div>
            <div class="comment">
                <p>商品</p>
                <p class="ju">来自白昆龙评论</p>
            </div>
        </li>
        <li>
            <center><img src="./素材/items/image5.png"></center>
            <div class="text">
                <p>小米笔记本电脑pro</p>
                <p class="price">2499元</p>
            </div>
            <div class="comment">
                <p>商品</p>
                <p class="ju">来自白昆龙评论</p>
            </div>
        </li>
        <li>
            <center><img src="./素材/items/image6.png"></center>
            <div class="text">
                <p>小米笔记本电脑pro</p>
                <p class="price">2499元</p>
            </div>
            <div class="comment">
                <p>商品</p>
                <p class="ju">来自白昆龙评论</p>
            </div>
        </li>

    </ul>
    <ul>
        <li>
            <img src="./素材/items/image2.png" width="250px" height="320px">
        </li>
        <li>
            <center><img src="./素材/items/image4.png"></center>
            <div class="text">
                <p>小米笔记本电脑pro</p>
                <p class="price">2499元</p>
            </div>
            <div class="comment">
                <p>商品</p>
                <p class="ju">来自白昆龙评论</p>
            </div>
        </li>
        <li>
            <center><img src="./素材/items/image3.png"></center>
            <div class="text">
                <p>小米笔记本电脑pro</p>
                <p class="price">2499元</p>
            </div>
            <div class="comment">
                <p>商品</p>
                <p class="ju">来自白昆龙评论</p>
            </div>
        </li>
        <li>
            <center><img src="./素材/items/image3.png"></center>
            <div class="text">
                <p>小米笔记本电脑pro</p>
                <p class="price">2499元</p>
            </div>
            <div class="comment">
                <p>商品</p>
                <p class="ju">来自白昆龙评论</p>
            </div>
        </li>
        <li>
            <center><img src="./素材/items/image3.png"></center>
            <div class="text">
                <p>小米笔记本电脑pro</p>
                <p class="price">2499元</p>
            </div>
            <div class="comment">
                <p>商品</p>
                <p class="ju">来自白昆龙评论</p>
            </div>
        </li>

    </ul>
</body>

</html>